package review.entity.model;

import com.alibaba.fastjson.JSONObject;
<#if hasFile>
import org.springframework.web.multipart.MultipartFile;
</#if>
import lombok.Data;
import review.entity.Test1;
import review.entity.Test2;

@Data
public class TestModel {

  private Test1 test1;
  private Test2 test2;

  private String prop1;
  private String prop2;
  private MultipartFile file;
  

  public JSONObject toJSON() {
    JSONObject obj = new JSONObject();
    obj.put("prop1", prop1);
    return obj;
  }

}
